package com.hskn.hss.module.tlfacilities.iEnum;
/**
 *运营费类型
 */
public enum TIFacilitiesTypeEnum {
    TIFACILITIESCHARGE("设施","设施",1),
    PARKCHARGE("园林","园林",2),
    TREECHARGE("古树","古树",3);

    private String name;
    private String notes;
    private Integer index;

    TIFacilitiesTypeEnum(String name, String notes, Integer index) {
        this.name = name;
        this.notes = notes;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNotes() {
        return notes;
    }
    public String getNotesByName(String name) {
        for (TIFacilitiesTypeEnum c : TIFacilitiesTypeEnum.values()) {
            if (c.getName() .equals(name) ) {
                return c.notes;
            }
        }
        return null;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Integer getCompany() {
        return index;
    }

    public void setCompany(Integer index) {
        this.index = index;
    }
}
